package com.roncoo.student.stu.controller;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.roncoo.student.stu.entity.UserCourse;
import com.roncoo.student.stu.service.IUserCourseService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author jl
 * @since 2021-04-10
 */
@RestController
@RequestMapping("/stu/user-course")
public class UserCourseController {

    @Resource
    private IUserCourseService courseService;

    @PostMapping("/findAll")
    public Page findAll(UserCourse course,Page page){
      return  courseService.select(course,page);
    }
}

